Configuring Destination Options

The VHS Import/Export Utility supports three destination types: Value History Service, CSV file, and Offline datastore.

Importing to a Replicated VHS

The VHS Import/Export utility can be used to import data from a live source VHS to a replicated destination VHS for the purpose of backfilling replication data. This works only when importing from a source VHS; if the source is a CSV file, or an offline datastore, the import will fail. The replicating VHS must be able to communicate with the source VHS across a firewall, subnet, etc.

VHS Destination Option

When using a VHS as the destination there are some additional configuration options. These settings are described in detail below.

Option Description  

Domain and Site.Service

Specify the Site.Service for the destination VHS. If importing to a VHS on a different domain, enter the Domain.

VHS destination options

VHS destination options

Destination point mapping

Destination point mapping

Map points...

The Point Mapping option can be used to migrate points' Site.Service from one Current Value Service (CVS) to another, by mapping the site and service in the destination VHS from A to B.

Example

To export a point called EXAMPLE.CVS:POINT1 to a destination VHS, use this feature to map the point to TEST.UIS:POINT1. Without using the mapping, the point would be exported as EXAMPLE.CVS:POINT1.

Notes:

This option is only available when transferring data from one VHS to another.

This option does not work when importing data from a source VHS to a replicated destination VHS.

Assign new retention period:

The Assign new retention period check box provides a method to change the history retention period for points when they are added to the VHS. This applies only to new points in the VHS. The days field specifies the retention period. See Value History Period for more information about retention time.

Notes:

Once the PNT resyncs with the UIS/VHS the new retention periods will be overwritten with the value stored in the PNT. This feature will only permanently change the retention time if the points are no longer associated with their PNT.

When importing data from a source VHS to a replicated destination VHS, this option only works when creating new points in the destination VHS.

CSV File Destination Option

When using a CVS file as the data destination there are some additional configuration options. These settings are described in detail below.

Option Description  

CSV file location

Specify the location of the destination CSV file.

CSV destination options

CSV destination options

Time format

The Time format option specifies how the timestamps will be exported to the CSV file. Options include Local or UTC format. The VHS stores timestamps in UTC time.

  • Local — the timestamp format used is the locale safe format: DD/English Month Abbreviation/YYYY hh:mm:ss.nnn
  • UTC — the timestamp format used is YYYYMMDDhhmmssnnn. If the timestamp format matches this format, the export will use UTC, otherwise it will try several different local time options.
Notes About Time Format:

When importing from a CSV file, the utility uses the time format to determine whether the timestamps in the file are in Local or UTC time. If you are preparing your data for later import from a CSV file, it is important to export the data in the right time format.

Be careful using Microsoft Excel to review or edit your exported data. If you save the CSV file from Excel, use a cell format that retains the time format. Excel will transform the time format to something the VHS Import/Export utility cannot read when reimporting the data. The import will be successful, but the timestamp will be lost. Alternatively use a program (such as Notepad) to edit the CSV file and not change the time format in any way.

See Time Format Notes for the Source option for more information about importing previously-exported data and timestamps.

Tag format

The Tag format options specify the format the points will be written to file in. Options are:

  • SITE.SERVICE:POINTID:LONGID
  • SITE.SERVICE:LONGID
  • SITE.SERVICE.POINTID

See Tag String Format for more information.

Offline Datastore Destination Option

When using an offline datastore as the data destination there are some additional configuration options. These settings are described in detail below.

Option Description  

Datastore folder location

Specify the path of the destination datastore folder.

Note: If the offline datastore is split (for example, the main datastore file (history.edb) is in one location and the transaction log files (\txlogs) are in another location) the VHS Import Export utility will determine this from the service configuration file.

Offline datastore destination options

Offline datastore destination options

Assign new retention period

The Assign new retention period check box provides a method to change the history retention period for points when they are added to the VHS. This applies only to new points in the VHS. The days field specifies the retention period. See Value History Period for more information about retention time.

Notes:

Once the PNT resyncs with the UIS/VHS the new retention periods will be overwritten with the value stored in the PNT. This feature will only permanently change the retention time if the points are no longer associated with their PNT.

When importing data from a source VHS to a replicated destination VHS, this option only works when creating new points in the destination VHS.

Back to top